<template>
  <div>
    <h1>我是父组件的标题</h1>
    <my-component>
      <template #s1="props">
        <p>插槽试图内容1</p>
        <div>
          {{props.user.name}}
        </div>
      </template>

      <p slot="s2">插槽试图内容2</p>
    </my-component>
  </div>
</template>

<script>
  import MyComponent from './MyComponent'

  export default {
    name: "SlotTest",
    components:{
      MyComponent
    }
  }
</script>

<style scoped>
</style>
